package com.haois.mp.database.module.offaccounts.dao;

import com.haois.mp.database.module.common.daomain.WxUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by RuiHaoZ on 2018/2/25 16:54
 */
@Component
public interface MpUserFollowMapper {
    void addWxMpUser(@Param("wxUser") WxUser wxUser);

    void updateWxMpUser(@Param("wxUser") WxUser wxUser);

    void syncWxMpUser(@Param("wxUser") WxUser wxUser);

    void deleteByOpenId(@Param("openId") String openId);

    void deleteByUserId(@Param("userId") String userId);

    WxUser getByOpenId(@Param("openId") String openId);

    WxUser getByUserId(@Param("userId") String userId);

    List<WxUser> getBySubState(@Param("subscribe") String subscribe);

}
